//
//@author jltxseo
// Created by junlintianxia on 2018/8/9.
//
#include "util/XqLog.h"
#include "TutorialLesson.h"
#define  LOG_TAG    "TutorialLesson"
void TutorialLesson::create() {
    printGLString(LOG_TAG,"Version", GL_VERSION);
    printGLString(LOG_TAG,"Vendor", GL_VENDOR);
    printGLString(LOG_TAG,"Renderer", GL_RENDERER);
    printGLString(LOG_TAG,"Extensions", GL_EXTENSIONS);
}

void TutorialLesson::change(int width, int height) {
    glViewport(0,0,width,height);
}

void TutorialLesson::draw()
{
    // Set the background clear color to gray.
    glClearColor(0.5f, 0.5f, 0.5f, 0.5f);
    glClear(GL_COLOR_BUFFER_BIT);
    checkGlError(LOG_TAG,"glClear");
}

